package com.mrjoew.weekend.entities.po;

import com.mrjoew.weekend.entities.BasePO;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.SQLDelete;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * @author Christopher Jones
 * @explain
 * @since 2020/11/29 0029 0:13
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@SQLDelete(sql = "UPDATE `sys_log` SET deleted = 1 WHERE id = ?")
@Table(name = "sys_log")
@Entity
public class SysLogPO extends BasePO {

    /**
     * 内容
     */
    @Column(name = "content", columnDefinition = "text comment '日志内容'")
    private String content;

    /**
     *
     */
    @Column(name = "error", columnDefinition = "varchar(128) comment '错误描述'")
    private String error;
}
